package android.explorer;

public class IconStore {
	public static Integer getIconByExtendsion(String ext){
		String extendsion=ext.toLowerCase();
		if(extendsion.endsWith("folder"))return R.drawable.folder32;
		if(extendsion.endsWith("zip"))return R.drawable.filearchive24;
		if(extendsion.endsWith("mp3"))return R.drawable.fileaudio24;
		if(extendsion.endsWith("jpg"))return R.drawable.filepicture24;
		if(extendsion.endsWith("bmp"))return R.drawable.filepicture24;
		if(extendsion.endsWith("png"))return R.drawable.filepicture24;
		if(extendsion.endsWith("gif"))return R.drawable.filepicture24;
		if(extendsion.endsWith("sdcard"))return R.drawable.sdcard32;
		if(extendsion.endsWith("root"))return R.drawable.tree32;
		if(extendsion.endsWith("audio"))return R.drawable.audio32;
		if(extendsion.endsWith("ogg"))return R.drawable.audio32;
		if(extendsion.endsWith("cache"))return R.drawable.cache32;
		if(extendsion.endsWith("data"))return R.drawable.data32;
		if(extendsion.endsWith("image"))return R.drawable.picture32;
		if(extendsion.endsWith("system"))return R.drawable.system32;
		if(extendsion.endsWith("video"))return R.drawable.video32;
		if(extendsion.endsWith("empty"))return R.drawable.empty32;
		
		
		return R.drawable.fileunknown24;
	}
}
